<%@ page import="com.po.User" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    List<User> frozenUsers = (List<User>) request.getAttribute("frozenUsers");
%>
<a href="<%=request.getContextPath()%>/success.jsp">返回上一级</a>
<div style="text-align: center">
    <h2>被冻结的用户如下:</h2>
</div>
<table>
    <tr>
        <td><h3>冻结用户id</h3></td>
        <td><h3>冻结用户名字</h3></td>
        <td><h3>用户创建时间</h3></td>
        <td><h3>用户账号</h3></td>
    </tr>

    <%
        for(User user : frozenUsers){
    %>
    <tr>
        <td><%=user.getId()%></td>
        <td><%=user.getName()%></td>
        <td><%=user.getTime()%>天</td>
        <td><%=user.getUsername()%></td>
        <td><button onclick="window.location.href='<%=request.getContextPath()%>/unFreezing?user_id=<%=user.getId()%>';relieve()">解冻</button></td>
    </tr>
    <%
        }
    %>
</table>
<style>
    table {
        width: 500px;
        margin: auto;
        border: pink 1px solid;
        border-spacing: 0px;
        border-collapse: collapse;
    }

    td {
        border: pink 1px solid;
    }

</style>
<script>
    function relieve(){
        alert("解冻成功");
    }
</script>
<style>
    body {
        background-image: url("../picture/new.jpg");
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-position: center center;
        background-size: 100% 100%;
    }
</style>